package com.fun_ordering.controller;

import com.fun_ordering.pojo.DishInfo;
import com.fun_ordering.pojo.FoLoss;
import com.fun_ordering.service.FoLossService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 陈星
 * @date 2024/4/11 13:31
 */
@RestController
@RequestMapping("/foLoss")
public class FoLossController {
    @Autowired
    private FoLossService foLossService;

    /**
     * 返回全部列表
     * @return
     */
    @RequestMapping("/findAll")
    public List<FoLoss> findAll(){
        return foLossService.findAll();
    }

}

